<template>
  <div class="count">
    <h1>我是Count组件</h1>
  </div>
</template>

<script>
export default {
  name: "Count",

  mounted(){
    console.log(this);
    console.log(this.$store.state.count);
  }
};
</script>

<style scoped>
.count {
  background: hotpink;
}
</style>